package com.tuanzi.loan.vo.response.wechat;

import com.tuanzi.loan.core.vo.IdentityResponse;
import com.tuanzi.server.loan_base.constant.LoanReceiptProductStatus;
import com.tuanzi.server.loan_base.constant.weixin.LoanWechatCustomerMessageStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: chenweijun
 * @Date: 2018/9/27 17:23
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class WechatCustomerMessageResponse extends IdentityResponse implements Serializable {

    private Long id;
    private String name;
    private String msgType;
    private Date effectiveStartTime;
    private Date effectiveEndTime;
    private String productId;
    private Integer status;
    private String creator;
    private Date createTime;
    private String updator;
    private Date updateTime;


    public boolean showOnlineBottom(){
        return LoanWechatCustomerMessageStatus.OFFLINE.ordinal() == status;
    }

    public boolean showOfflineBottom(){
        return LoanWechatCustomerMessageStatus.ONLINE.ordinal() == status;
    }

}
